﻿using DtuService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NetCommand;
using System.Data;
using System.Threading;
using SuperSocket.SocketBase;

namespace DtuService
{
    public struct SiteInfo
    {
        public bool IsDeviceOnLine;
        public Device Device;
    }
    public class User : Client
    {
        private Dictionary<string, SiteInfo> deviceList = new Dictionary<string, SiteInfo>();
        public User(ByteSession tcp)
            : base(tcp)
        {
 
        }

        /// <summary>
        /// 处理用户请求
        /// </summary>
        /// <param name="msg"></param>
        protected override void receiveUserMessage(NetCommand.NetCommand msg)
        {
            if (msg == null)
            {
                Debug.Error("消息错误");
                return;
            }           
        }
    }
}
